//
//  LoginAction.m
//  JinFuThree
//
//  Created by 爱尚 on 2018/8/29.
//  Copyright © 2018年 毛韶谦. All rights reserved.
//

#import "LoginAction.h"
#import "LoginViewController.h"
#import "ASJFUserNavigationController.h"

@implementation LoginAction

- (UIViewController *)mainViewController{
    
    LoginViewController *loginVC = [[LoginViewController alloc]init];
    ASJFUserNavigationController *nc = [[ASJFUserNavigationController alloc] initWithRootViewController:loginVC];
    
    return nc;
    
}

//退出登录调用
- (id)logOutAction {
    
    [AD_UserDefaults setObject:nil forKey:ASJFMyUserLoginTokenKey];
    [AD_UserDefaults setObject:nil forKey:ASJFMyUserInfoAccountKey];
    [AD_UserDefaults setObject:nil forKey:ASJFUserNameKey];
    [AD_UserDefaults setObject:nil forKey:@"my_authenticationGrade"];
    if ([AD_UserDefaults synchronize]) {
        return @1;
    }else {
        return @0;
    }
}


/**
 展示几个模块

 @return YES 展示4个，NO 展示 3个；
 */
- (id)isShowFourModule {
    
    return @1;
}




@end
